package com.ruoyi.zhjd.laboratory.modules.disconnectRecord.service;


import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.zhjd.laboratory.modules.disconnectRecord.domain.bo.NSiteDisconnectRecordBo;
import com.ruoyi.zhjd.laboratory.modules.disconnectRecord.domain.vo.NSiteDisconnectRecordVo;
import com.ruoyi.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

import javax.validation.constraints.NotNull;

/**
 * 工地现场断网记录Service接口
 *
 * @author zyb
 * @date 2023-10-13
 */
public interface INSiteDisconnectRecordService {

    /**
     * 查询工地现场断网记录
     */
	TableDataInfo<NSiteDisconnectRecordVo> queryById(@NotNull(message = "终端编号不能为空") String type,PageQuery pageQuery);

    /**
     * 查询工地现场断网记录列表
     */
    TableDataInfo<NSiteDisconnectRecordVo> queryPageList(NSiteDisconnectRecordBo bo, PageQuery pageQuery);

    /**
     * 查询工地现场断网记录列表
     */
    List<NSiteDisconnectRecordVo> queryList(NSiteDisconnectRecordBo bo);

    /**
     * 新增工地现场断网记录
     */
    Boolean insertByBo(NSiteDisconnectRecordBo bo);

    /**
     * 修改工地现场断网记录
     */
    Boolean updateByBo(NSiteDisconnectRecordBo bo);

    /**
     * 校验并批量删除工地现场断网记录信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

	TableDataInfo<NSiteDisconnectRecordVo> equipmentOffline(NSiteDisconnectRecordBo bo,
			PageQuery pageQuery);

	TableDataInfo<NSiteDisconnectRecordVo> equipmentOfflineDetail(
			NSiteDisconnectRecordBo bo, PageQuery pageQuery);

	TableDataInfo<NSiteDisconnectRecordVo> getSiteOnlineRecord(NSiteDisconnectRecordBo bo, PageQuery pageQuery);

	TableDataInfo<NSiteDisconnectRecordVo> queryBhzPageList(NSiteDisconnectRecordBo bo, PageQuery pageQuery);

}
